package com.synergy.stockflow.service;

import com.synergy.stockflow.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.synergy.stockflow.entity.dto.SysUserDTO;
import com.synergy.stockflow.entity.dto.SysUserPwdDTO;
import com.synergy.stockflow.entity.vo.SysUserVO;

import java.util.List;

public interface SysUserService extends IService<SysUser>{

    SysUserVO currentUser();

    Boolean saveUser(SysUserDTO dto);
    Boolean updateUserByUsername(SysUserDTO dto);

    Integer updateUserDelFlag(SysUserVO vo);
    Integer updateBatchUserDelFlag(List<Long> ids);

    Boolean updatePwdByUsername(SysUserPwdDTO dto);

    Boolean updateUserInfoByUsername(SysUserDTO dto);

}
